package com.fduss.artStore.entity;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 15:51
 */
public class TypesStatusCode {

    private int statusId;
    private String status;

    public TypesStatusCode(String status) {
        this.status = status;
    }
    public TypesStatusCode(int statusId, String status) {
        this.statusId = statusId;
        this.status = status;
    }
    public int getStatusId() {
        return statusId;
    }

    public void setStatusId(int statusId) {
        this.statusId = statusId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TypesStatusCode that = (TypesStatusCode) o;

        if (statusId != that.statusId) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = statusId;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        return result;
    }
}
